# -*- coding: utf-8 -*-
import urllib
text="百万英雄"
# text=str(text)
# text=urllib.parse.quote(text)
# url='http://blog.csdn.net/yan456jie/article/details/47359589'
pattern = 'ws'
url = 'https://api.ltp-cloud.com/analysis/?api_key=n1d6I4s389gNeGNergVhdcIgJXxbrkIl6fghQlqq&text='+text+'&pattern='+pattern+'&format=plain'
response = urllib.urlopen(url).read().decode('utf-8')
print(response)
